package com.shenhan.functioninterface;

import java.util.function.Consumer;

/**
 * @Author shenhan
 * @Date: 2020/6/11 21:35
 * @Description:
 */
public class ConsumerDemo {
    public static void main(String[] args) {
        Consumer<String> consumer = System.out::println;
        consumer.accept("consumer输出");
    }
}
